package main

/*

go build -o escape --gcflags "-m -m -l" memory_escape.go  > escape.txt 2>&1

*/
import "fmt"

func main() {
	p1 := testPtr1()
	fmt.Println("*p1: ", *p1)
}
func testPtr1() *string {
	name := "caoxiansheng"
	p0 := &name
	fmt.Println("*p0: ", *p0)

	city := "beijing"
	ptr := &city
	return ptr
}
